package com.nenu.bdms.config.springdoc;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * SpringDoc API文档相关配置
 * Created by macro on 2022/3/4.
 */
@Configuration
public class SpringDocConfig {
        @Bean
        public OpenAPI mallTinyOpenAPI() {
                return new OpenAPI()
                        .info(new Info().title("bdms-api")
                                .description("2022吉数研院杯软件设计大赛-行为决策系统API文档-东北师范大学-人月神话队-李一帆、董小萌、侯文科、赵坤")
                                .version("v1.0.0")
                                .license(new License().name("Apache 2.0").url("https://gitee.com/fangexuxiehuihuang/behavioral-decision-making-system.git")));
        }
}
